package com.jxzn.locust.dao;

import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.jxzn.locust.model.RoleResource;

@Repository
public interface RoleResourceRepository extends AbstractRepository<RoleResource> {

    RoleResource findByRoleIdAndResourceUuid(@Param("roleId") int roleId, @Param("resourceUuid") String resourceUuid);
    
    void deleteByRoleId(int roleId);

}
